﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using iOak.Data.Directory;
using iOak.Domain.Directory;

namespace iOak.Business.Directory
{
    public class PicklistValueService
    {
        private PicklistValueRepository _picklistValueRepository;
        public PicklistValueService()
        {
            _picklistValueRepository = new PicklistValueRepository("master");
        }

        public List<PicklistValue> RetrieveMultiple(PickListEnum picklist) 
        {
            return _picklistValueRepository.RetrieveMultiple(picklist);
        }

        public PicklistValue GetById(int picklistValueId)
        {
            return _picklistValueRepository.GetById(picklistValueId);
        }
    }
}
